import http from "../../utils/http"

/**
 * 获取用户信息
 * @param {object} params
 */
export function info(params) {
    return http({
        url: "/api/member/info",
        data: params,
        forceLogin: true
    })
}
/**
 * 修改昵称
 * @param {object} params
 */
export function nickName(params) {
    return http({
        url: "/api/member/modifynickname",
        data: params,
        forceLogin: true
    })
}
/**
 * 修改头像
 * @param {object} params
 */
export function headImg(params) {
    return http({
        url: "/api/member/modifyheadimg",
        data: params,
        forceLogin: true
    })
}

/**
 * 获取区号
 */
export function countryFn(params) {
    return http({
        url: '/api/register/countrylist',
        data: params,
        forceLogin: true
    })
}

/**
 * 
 * 获取代理等级
 */
export function levelFn(params){
    return http({
        url: '/api/abonus/level',
        data: params,
        forceLogin: true
    })
}

/**
 * 实名认证
 */
export function realFn(params){
    return http({
        url: '/api/member/certification',
        data: params,
        forceLogin: true,
    })
}

/**
 * 提交代理申请
 */
export function applyProxy(params){
    return http({
        url: '/api/abonus/apply',
        data: params,
        forceLogin: true
    })
}
